package org.fisco.bcos.evidence.config;

public enum ResultCode {

    SUCCESS("200", "成功"),
    BAD_REQUEST("400", "参数或语法有误"),
    SERVER_ERROR("500", "服务器内部错误"),

    InvalidArgumentException("502", "请求失败:无效的参数"),
    NoSuchAlgorithmException("503", "请求失败:算法异常"),
    TransactionException("504", "请求失败:请求事务异常"),
    ProposalException("506", "请求失败:提案异常"),
    InterruptedException("507", "请求失败:被打断"),
    ExecutionException("508", "请求失败:执行异常"),
    OrdererSizeException("509", "没有足够的背书节点");

    private String code;
    private String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
